package com.mc.common.redis;

import redis.clients.jedis.Jedis;

public class TestRedis {

	public static void main(String[] args) {
		//连接本地的 Redis 服务
		Jedis jedis = new Jedis("118.89.45.146");
		jedis.auth("root");
		System.out.println("连接成功");
		jedis.set("list","212121");
		System.out.println(jedis.get("list"));
	}

}

